<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="杨柳">
        <title>外联任务单</title>
        <link href="https://cdn.bootcss.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
        <style type="text/css">
            body {
                padding-top: 70px; margin-bottom: 15px;
                -webkit-font-smoothing: antialiased;
                -moz-osx-font-smoothing: grayscale;
                font-family: "Roboto", "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", BlinkMacSystemFont, -apple-system, "Segoe UI", "Microsoft Yahei", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
                font-weight: 400;
            }
            h2        { font-size: 1.6em; }
            hr        { margin-top: 10px; }
            .tab-pane { padding-top: 10px; }
            .mt0      { margin-top: 0px; }
            .footer   { font-size: 12px; color: #666; }
            .label    { display: inline-block; min-width: 65px; padding: 0.3em 0.6em 0.3em; }
            .string   { color: green; }
            .number   { color: darkorange; }
            .boolean  { color: blue; }
            .null     { color: magenta; }
            .key      { color: red; }
            .popover  { max-width: 400px; max-height: 400px; overflow-y: auto;}
        </style>
    </head>
    <body>
        <!-- Fixed navbar -->
        <div class="navbar navbar-default navbar-fixed-top" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="https://www.fastadmin.net" target="_blank">外联任务单</a>
                </div>
                <div class="navbar-collapse collapse">
                    <form class="navbar-form navbar-right">
                        <div class="form-group">
                            Token:
                        </div>
                        <div class="form-group">
                            <input type="text" class="form-control input-sm" data-toggle="tooltip" title="Token在会员注册或登录后都会返回,WEB端同时存在于Cookie中" placeholder="token" id="token" />
                        </div>
                        <div class="form-group">
                            Apiurl:
                        </div>
                        <div class="form-group">
                            <input id="apiUrl" type="text" class="form-control input-sm" data-toggle="tooltip" title="API接口URL" placeholder="https://api.mydomain.com" value="api/outer" />
                        </div>
                        <div class="form-group">
                            <button type="button" class="btn btn-success btn-sm" data-toggle="tooltip" title="点击保存后Token和Api url都将保存在本地Localstorage中" id="save_data">
                                <span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span>
                            </button>
                        </div>
                    </form>
                </div><!--/.nav-collapse -->
            </div>
        </div>

        <div class="container">
            <div class="panel-group" id="accordion">
                <h2>外联任务单</h2>
                <hr>
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h4 class="panel-title">
                            <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion80" href="#collapseOne80"> /api/outer/index</a>
                        </h4>
                    </div>
                    <div id="collapseOne80" class="panel-collapse collapse">
                        <div class="panel-body">

                            <!-- Nav tabs -->
                            <ul class="nav nav-tabs" id="doctab80">
                                <li class="active"><a href="#info80" data-toggle="tab">基础信息</a></li>
                                <li><a href="#sandbox80" data-toggle="tab">在线测试</a></li>
                                <li><a href="#sample80" data-toggle="tab">返回示例</a></li>
                            </ul>

                            <!-- Tab panes -->
                            <div class="tab-content">

                                <div class="tab-pane active" id="info80">
                                    <div class="well">
                                        外联任务单分页                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>Headers</strong></div>
                                        <div class="panel-body">
                                            无
                                        </div>
                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>参数</strong></div>
                                        <div class="panel-body">
                                            <table class="table table-hover">
                                                <thead>
                                                <tr>
                                                    <th>名称</th>
                                                    <th>类型</th>
                                                    <th>必选</th>
                                                    <th>描述</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <tr>
                                                    <td>token</td>
                                                    <td>string</td>
                                                    <td>是</td>
                                                    <td>用户token</td>
                                                </tr>
                                                <tr>
                                                    <td>page</td>
                                                    <td>integer</td>
                                                    <td>否</td>
                                                    <td>第几页,默认第一页</td>
                                                </tr>
                                                <tr>
                                                    <td>limit</td>
                                                    <td>string</td>
                                                    <td>否</td>
                                                    <td>每页条数,默认10条</td>
                                                </tr>
                                                <tr>
                                                    <td>where[filiale]</td>
                                                    <td>array</td>
                                                    <td>否</td>
                                                    <td>查询条件,分公司ID</td>
                                                </tr>
                                                <tr>
                                                    <td>where[week_id]</td>
                                                    <td>array</td>
                                                    <td>否</td>
                                                    <td>查询条件,周次ID</td>
                                                </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>正文</strong></div>
                                        <div class="panel-body">
                                            无                                        </div>
                                    </div>
                                </div><!-- #info -->

                                <div class="tab-pane" id="sandbox80">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>参数</strong></div>
                                                <div class="panel-body">
                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/outer/index" method="GET" name="form80" id="form80">
                                                        <div class="form-group">
                                                            <label class="control-label" for="token">token</label>
                                                            <input type="string" class="form-control input-sm" id="token" required placeholder="用户token" name="token">
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label" for="page">page</label>
                                                            <input type="integer" class="form-control input-sm" id="page"  placeholder="第几页,默认第一页" name="page">
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label" for="limit">limit</label>
                                                            <input type="string" class="form-control input-sm" id="limit"  placeholder="每页条数,默认10条" name="limit">
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label" for="where[filiale]">where[filiale]</label>
                                                            <input type="array" class="form-control input-sm" id="where[filiale]"  placeholder="查询条件,分公司ID" name="where[filiale]">
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label" for="where[week_id]">where[week_id]</label>
                                                            <input type="array" class="form-control input-sm" id="where[week_id]"  placeholder="查询条件,周次ID" name="where[week_id]">
                                                        </div>
                                                        <div class="form-group">
                                                            <button type="submit" class="btn btn-success send" rel="80">提交</button>
                                                        </div>
                                                    </form>
                                                </div>
                                            </div>
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>响应输出</strong></div>
                                                <div class="panel-body">
                                                    <div class="row">
                                                        <div class="col-md-12" style="overflow-x:auto">
                                                            <pre id="response_headers80"></pre>
                                                            <pre id="response80"></pre>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>返回参数</strong></div>
                                                <div class="panel-body">
                                                    <table class="table table-hover">
                                                        <thead>
                                                        <tr>
                                                            <th>名称</th>
                                                            <th>类型</th>
                                                            <th>描述</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        <tr>
                                                            <td>code</td>
                                                            <td>integer</td>
                                                            <td>0成功。其他都失败</td>
                                                        </tr>
                                                        <tr>
                                                            <td>msg</td>
                                                            <td>string</td>
                                                            <td>返回成功</td>
                                                        </tr>
                                                        <tr>
                                                            <td>time</td>
                                                            <td>integer</td>
                                                            <td>时间戳</td>
                                                        </tr>
                                                        <tr>
                                                            <td>total</td>
                                                            <td>integer</td>
                                                            <td>总条数</td>
                                                        </tr>
                                                        <tr>
                                                            <td>per_page</td>
                                                            <td>integer</td>
                                                            <td>每页数</td>
                                                        </tr>
                                                        <tr>
                                                            <td>current_page</td>
                                                            <td>integer</td>
                                                            <td>当前页</td>
                                                        </tr>
                                                        <tr>
                                                            <td>last_page</td>
                                                            <td>integer</td>
                                                            <td>最后一页</td>
                                                        </tr>
                                                        <tr>
                                                            <td>id</td>
                                                            <td>integer</td>
                                                            <td>主键ID</td>
                                                        </tr>
                                                        <tr>
                                                            <td>userid</td>
                                                            <td>string</td>
                                                            <td>添加人ID hdyj_admin</td>
                                                        </tr>
                                                        <tr>
                                                            <td>week_id</td>
                                                            <td>integer</td>
                                                            <td>周ID hdyj_finance_extract_week</td>
                                                        </tr>
                                                        <tr>
                                                            <td>school_id</td>
                                                            <td>integer</td>
                                                            <td>学校ID hdyj_school</td>
                                                        </tr>
                                                        <tr>
                                                            <td>external</td>
                                                            <td>string</td>
                                                            <td>外联</td>
                                                        </tr>
                                                        <tr>
                                                            <td>status</td>
                                                            <td>integer</td>
                                                            <td>状态</td>
                                                        </tr>
                                                        <tr>
                                                            <td>createtime</td>
                                                            <td>integer</td>
                                                            <td>创建时间</td>
                                                        </tr>
                                                        <tr>
                                                            <td>updatetime</td>
                                                            <td>integer</td>
                                                            <td>更新时间</td>
                                                        </tr>
                                                        <tr>
                                                            <td>filiale</td>
                                                            <td>integer</td>
                                                            <td>分公司ID</td>
                                                        </tr>
                                                        <tr>
                                                            <td>filiale_name</td>
                                                            <td>string</td>
                                                            <td>分公司名称</td>
                                                        </tr>
                                                        <tr>
                                                            <td>runner</td>
                                                            <td>string</td>
                                                            <td>合跑外联</td>
                                                        </tr>
                                                        <tr>
                                                            <td>userid_text</td>
                                                            <td>string</td>
                                                            <td>添加人名称</td>
                                                        </tr>
                                                        <tr>
                                                            <td>week_id_text</td>
                                                            <td>string</td>
                                                            <td>周数据名称</td>
                                                        </tr>
                                                        <tr>
                                                            <td>school_id_text</td>
                                                            <td>string</td>
                                                            <td>学校名称</td>
                                                        </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div><!-- #sandbox -->

                                <div class="tab-pane" id="sample80">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <pre id="sample_response80">{
    "code": 1,
    "msg": "",
    "time": "1574932827",
    "data": {
    "total": 57,
    "per_page": "1",
    "current_page": 1,
    "last_page": 57,
    "data": [
    {
    "id": 1,
    "userid": "yangliu",
    "week_id": 2,
    "external": "yangliu",
    "status": 1,
    "createtime": 1574908660,
    "filiale": 1,
    "filiale_name": "北京分公司",
    "runner": null,
    "school_id": 1,
    "userid_text": "杨柳",
    "week_id_text": "08.20-08.26周数据",
    "school_id_text": "北京市第四中学"
    }
    ]
    }
    }</pre>
                                        </div>
                                    </div>
                                </div><!-- #sample -->

                            </div><!-- .tab-content -->
                        </div>
                    </div>
                </div>
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h4 class="panel-title">
                            <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion81" href="#collapseOne81"> /api/outer/school</a>
                        </h4>
                    </div>
                    <div id="collapseOne81" class="panel-collapse collapse">
                        <div class="panel-body">

                            <!-- Nav tabs -->
                            <ul class="nav nav-tabs" id="doctab81">
                                <li class="active"><a href="#info81" data-toggle="tab">基础信息</a></li>
                                <li><a href="#sandbox81" data-toggle="tab">在线测试</a></li>
                                <li><a href="#sample81" data-toggle="tab">返回示例</a></li>
                            </ul>

                            <!-- Tab panes -->
                            <div class="tab-content">

                                <div class="tab-pane active" id="info81">
                                    <div class="well">
                                        学校查询                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>Headers</strong></div>
                                        <div class="panel-body">
                                            无
                                        </div>
                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>参数</strong></div>
                                        <div class="panel-body">
                                            <table class="table table-hover">
                                                <thead>
                                                <tr>
                                                    <th>名称</th>
                                                    <th>类型</th>
                                                    <th>必选</th>
                                                    <th>描述</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <tr>
                                                    <td>token</td>
                                                    <td>string</td>
                                                    <td>是</td>
                                                    <td>用户token</td>
                                                </tr>
                                                <tr>
                                                    <td>page</td>
                                                    <td>integer</td>
                                                    <td>否</td>
                                                    <td>第几页,默认第一页</td>
                                                </tr>
                                                <tr>
                                                    <td>limit</td>
                                                    <td>string</td>
                                                    <td>否</td>
                                                    <td>每页条数,默认10条</td>
                                                </tr>
                                                <tr>
                                                    <td>where[name]</td>
                                                    <td>array</td>
                                                    <td>否</td>
                                                    <td>学校名称</td>
                                                </tr>
                                                <tr>
                                                    <td>where[province]</td>
                                                    <td>array</td>
                                                    <td>否</td>
                                                    <td>省</td>
                                                </tr>
                                                <tr>
                                                    <td>where[city]</td>
                                                    <td>array</td>
                                                    <td>否</td>
                                                    <td>市</td>
                                                </tr>
                                                <tr>
                                                    <td>where[area]</td>
                                                    <td>array</td>
                                                    <td>否</td>
                                                    <td>区县</td>
                                                </tr>
                                                <tr>
                                                    <td>where[type]</td>
                                                    <td>array</td>
                                                    <td>否</td>
                                                    <td>类别</td>
                                                </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>正文</strong></div>
                                        <div class="panel-body">
                                            无                                        </div>
                                    </div>
                                </div><!-- #info -->

                                <div class="tab-pane" id="sandbox81">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>参数</strong></div>
                                                <div class="panel-body">
                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/outer/school" method="GET" name="form81" id="form81">
                                                        <div class="form-group">
                                                            <label class="control-label" for="token">token</label>
                                                            <input type="string" class="form-control input-sm" id="token" required placeholder="用户token" name="token">
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label" for="page">page</label>
                                                            <input type="integer" class="form-control input-sm" id="page"  placeholder="第几页,默认第一页" name="page">
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label" for="limit">limit</label>
                                                            <input type="string" class="form-control input-sm" id="limit"  placeholder="每页条数,默认10条" name="limit">
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label" for="where[name]">where[name]</label>
                                                            <input type="array" class="form-control input-sm" id="where[name]"  placeholder="学校名称" name="where[name]">
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label" for="where[province]">where[province]</label>
                                                            <input type="array" class="form-control input-sm" id="where[province]"  placeholder="省" name="where[province]">
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label" for="where[city]">where[city]</label>
                                                            <input type="array" class="form-control input-sm" id="where[city]"  placeholder="市" name="where[city]">
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label" for="where[area]">where[area]</label>
                                                            <input type="array" class="form-control input-sm" id="where[area]"  placeholder="区县" name="where[area]">
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label" for="where[type]">where[type]</label>
                                                            <input type="array" class="form-control input-sm" id="where[type]"  placeholder="类别" name="where[type]">
                                                        </div>
                                                        <div class="form-group">
                                                            <button type="submit" class="btn btn-success send" rel="81">提交</button>
                                                        </div>
                                                    </form>
                                                </div>
                                            </div>
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>响应输出</strong></div>
                                                <div class="panel-body">
                                                    <div class="row">
                                                        <div class="col-md-12" style="overflow-x:auto">
                                                            <pre id="response_headers81"></pre>
                                                            <pre id="response81"></pre>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>返回参数</strong></div>
                                                <div class="panel-body">
                                                    <table class="table table-hover">
                                                        <thead>
                                                        <tr>
                                                            <th>名称</th>
                                                            <th>类型</th>
                                                            <th>描述</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        <tr>
                                                            <td>code</td>
                                                            <td>integer</td>
                                                            <td>0成功。其他都失败</td>
                                                        </tr>
                                                        <tr>
                                                            <td>msg</td>
                                                            <td>string</td>
                                                            <td>返回成功</td>
                                                        </tr>
                                                        <tr>
                                                            <td>time</td>
                                                            <td>integer</td>
                                                            <td>时间戳</td>
                                                        </tr>
                                                        <tr>
                                                            <td>total</td>
                                                            <td>integer</td>
                                                            <td>总条数</td>
                                                        </tr>
                                                        <tr>
                                                            <td>per_page</td>
                                                            <td>integer</td>
                                                            <td>每页数</td>
                                                        </tr>
                                                        <tr>
                                                            <td>current_page</td>
                                                            <td>integer</td>
                                                            <td>当前页</td>
                                                        </tr>
                                                        <tr>
                                                            <td>last_page</td>
                                                            <td>integer</td>
                                                            <td>最后一页</td>
                                                        </tr>
                                                        <tr>
                                                            <td>id</td>
                                                            <td>integer</td>
                                                            <td>主键ID</td>
                                                        </tr>
                                                        <tr>
                                                            <td>name</td>
                                                            <td>string</td>
                                                            <td>name</td>
                                                        </tr>
                                                        <tr>
                                                            <td>province</td>
                                                            <td>string</td>
                                                            <td>1</td>
                                                        </tr>
                                                        <tr>
                                                            <td>city</td>
                                                            <td>string</td>
                                                            <td>2</td>
                                                        </tr>
                                                        <tr>
                                                            <td>area</td>
                                                            <td>string</td>
                                                            <td>4</td>
                                                        </tr>
                                                        <tr>
                                                            <td>type</td>
                                                            <td>string</td>
                                                            <td>3</td>
                                                        </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div><!-- #sandbox -->

                                <div class="tab-pane" id="sample81">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <pre id="sample_response81">{
    code: 1,
    msg: "",
    time: "1575096350",
    data: {
    total: 1,
    per_page: 10,
    current_page: 1,
    last_page: 1,
    data: [
    {
    id: 1,
    name: "北京市第四中学",
    province: 1,
    city: 2,
    area: 4,
    address: "西黄城根北街甲2号",
    category: "A",
    type: "3",
    class: 0,
    total_number: 0,
    textbook_edition: "",
    policylist: null,
    is_schoolsdata: "1",
    total_score: "",
    volume: null,
    teaching_order: null,
    bookstore: "",
    createtime: 1542265427,
    updatetime: 1542265427,
    category_text: "A",
    type_text: "高中",
    policylist_text: "",
    is_schoolsdata_text: "Is_schoolsdata 1",
    volume_text: "",
    teaching_order_text: "",
    province_text: "北京",
    city_text: "北京市",
    area_text: "西城区"
    }
    ]
    }
    }</pre>
                                        </div>
                                    </div>
                                </div><!-- #sample -->

                            </div><!-- .tab-content -->
                        </div>
                    </div>
                </div>
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h4 class="panel-title">
                            <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion82" href="#collapseOne82"> /api/outer/add</a>
                        </h4>
                    </div>
                    <div id="collapseOne82" class="panel-collapse collapse">
                        <div class="panel-body">

                            <!-- Nav tabs -->
                            <ul class="nav nav-tabs" id="doctab82">
                                <li class="active"><a href="#info82" data-toggle="tab">基础信息</a></li>
                                <li><a href="#sandbox82" data-toggle="tab">在线测试</a></li>
                                <li><a href="#sample82" data-toggle="tab">返回示例</a></li>
                            </ul>

                            <!-- Tab panes -->
                            <div class="tab-content">

                                <div class="tab-pane active" id="info82">
                                    <div class="well">
                                        领导新增外联任务                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>Headers</strong></div>
                                        <div class="panel-body">
                                            无
                                        </div>
                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>参数</strong></div>
                                        <div class="panel-body">
                                            <table class="table table-hover">
                                                <thead>
                                                <tr>
                                                    <th>名称</th>
                                                    <th>类型</th>
                                                    <th>必选</th>
                                                    <th>描述</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <tr>
                                                    <td>token</td>
                                                    <td>string</td>
                                                    <td>是</td>
                                                    <td>用户token</td>
                                                </tr>
                                                <tr>
                                                    <td>row[week_id]</td>
                                                    <td>array</td>
                                                    <td>是</td>
                                                    <td>周计划ID</td>
                                                </tr>
                                                <tr>
                                                    <td>row[school_id]</td>
                                                    <td>array</td>
                                                    <td>是</td>
                                                    <td>学校ID</td>
                                                </tr>
                                                <tr>
                                                    <td>row[external]</td>
                                                    <td>array</td>
                                                    <td>是</td>
                                                    <td>外联</td>
                                                </tr>
                                                <tr>
                                                    <td>row[runner]</td>
                                                    <td>array</td>
                                                    <td>否</td>
                                                    <td>合跑外联 例如:1,2,3</td>
                                                </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>正文</strong></div>
                                        <div class="panel-body">
                                            无                                        </div>
                                    </div>
                                </div><!-- #info -->

                                <div class="tab-pane" id="sandbox82">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>参数</strong></div>
                                                <div class="panel-body">
                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/outer/add" method="POSt" name="form82" id="form82">
                                                        <div class="form-group">
                                                            <label class="control-label" for="token">token</label>
                                                            <input type="string" class="form-control input-sm" id="token" required placeholder="用户token" name="token">
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label" for="row[week_id]">row[week_id]</label>
                                                            <input type="array" class="form-control input-sm" id="row[week_id]" required placeholder="周计划ID" name="row[week_id]">
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label" for="row[school_id]">row[school_id]</label>
                                                            <input type="array" class="form-control input-sm" id="row[school_id]" required placeholder="学校ID" name="row[school_id]">
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label" for="row[external]">row[external]</label>
                                                            <input type="array" class="form-control input-sm" id="row[external]" required placeholder="外联" name="row[external]">
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label" for="row[runner]">row[runner]</label>
                                                            <input type="array" class="form-control input-sm" id="row[runner]"  placeholder="合跑外联 例如:1,2,3" name="row[runner]">
                                                        </div>
                                                        <div class="form-group">
                                                            <button type="submit" class="btn btn-success send" rel="82">提交</button>
                                                        </div>
                                                    </form>
                                                </div>
                                            </div>
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>响应输出</strong></div>
                                                <div class="panel-body">
                                                    <div class="row">
                                                        <div class="col-md-12" style="overflow-x:auto">
                                                            <pre id="response_headers82"></pre>
                                                            <pre id="response82"></pre>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>返回参数</strong></div>
                                                <div class="panel-body">
                                                    <table class="table table-hover">
                                                        <thead>
                                                        <tr>
                                                            <th>名称</th>
                                                            <th>类型</th>
                                                            <th>描述</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        <tr>
                                                            <td>code</td>
                                                            <td>integer</td>
                                                            <td>0成功。其他都失败</td>
                                                        </tr>
                                                        <tr>
                                                            <td>msg</td>
                                                            <td>string</td>
                                                            <td>返回成功</td>
                                                        </tr>
                                                        <tr>
                                                            <td>time</td>
                                                            <td>integer</td>
                                                            <td>时间戳</td>
                                                        </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div><!-- #sandbox -->

                                <div class="tab-pane" id="sample82">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <pre id="sample_response82">{
    "code": 1,
    "msg": "新增成功！",
    "time": "1574934820",
    "data": {
    "week_id": "1",
    "school_id": "2",
    "external": "yangliu",
    "runner": "yangliu,SunDan",
    "filiale": "1",
    "filiale_name": "北京分公司",
    "userid": "SunDan",
    "createtime": 1574934820,
    "updatetime": 1574934820,
    "id": "60",
    "userid_text": "孙丹",
    "week_id_text": null,
    "school_id_text": "测试学校"
    }
    }</pre>
                                        </div>
                                    </div>
                                </div><!-- #sample -->

                            </div><!-- .tab-content -->
                        </div>
                    </div>
                </div>
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h4 class="panel-title">
                            <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion83" href="#collapseOne83"> /api/outer/examine/ids/{ids}</a>
                        </h4>
                    </div>
                    <div id="collapseOne83" class="panel-collapse collapse">
                        <div class="panel-body">

                            <!-- Nav tabs -->
                            <ul class="nav nav-tabs" id="doctab83">
                                <li class="active"><a href="#info83" data-toggle="tab">基础信息</a></li>
                                <li><a href="#sandbox83" data-toggle="tab">在线测试</a></li>
                                <li><a href="#sample83" data-toggle="tab">返回示例</a></li>
                            </ul>

                            <!-- Tab panes -->
                            <div class="tab-content">

                                <div class="tab-pane active" id="info83">
                                    <div class="well">
                                        查看外联任务单                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>Headers</strong></div>
                                        <div class="panel-body">
                                            无
                                        </div>
                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>参数</strong></div>
                                        <div class="panel-body">
                                            <table class="table table-hover">
                                                <thead>
                                                <tr>
                                                    <th>名称</th>
                                                    <th>类型</th>
                                                    <th>必选</th>
                                                    <th>描述</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <tr>
                                                    <td>token</td>
                                                    <td>string</td>
                                                    <td>是</td>
                                                    <td>用户token</td>
                                                </tr>
                                                <tr>
                                                    <td>ids</td>
                                                    <td>integer</td>
                                                    <td>是</td>
                                                    <td>外联任务单id</td>
                                                </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>正文</strong></div>
                                        <div class="panel-body">
                                            无                                        </div>
                                    </div>
                                </div><!-- #info -->

                                <div class="tab-pane" id="sandbox83">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>参数</strong></div>
                                                <div class="panel-body">
                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/outer/examine/ids/{ids}" method="GET" name="form83" id="form83">
                                                        <div class="form-group">
                                                            <label class="control-label" for="token">token</label>
                                                            <input type="string" class="form-control input-sm" id="token" required placeholder="用户token" name="token">
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label" for="ids">ids</label>
                                                            <input type="integer" class="form-control input-sm" id="ids" required placeholder="外联任务单id" name="ids">
                                                        </div>
                                                        <div class="form-group">
                                                            <button type="submit" class="btn btn-success send" rel="83">提交</button>
                                                        </div>
                                                    </form>
                                                </div>
                                            </div>
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>响应输出</strong></div>
                                                <div class="panel-body">
                                                    <div class="row">
                                                        <div class="col-md-12" style="overflow-x:auto">
                                                            <pre id="response_headers83"></pre>
                                                            <pre id="response83"></pre>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>返回参数</strong></div>
                                                <div class="panel-body">
                                                    <table class="table table-hover">
                                                        <thead>
                                                        <tr>
                                                            <th>名称</th>
                                                            <th>类型</th>
                                                            <th>描述</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        <tr>
                                                            <td>code</td>
                                                            <td>integer</td>
                                                            <td>0成功。其他都失败</td>
                                                        </tr>
                                                        <tr>
                                                            <td>msg</td>
                                                            <td>string</td>
                                                            <td>返回成功</td>
                                                        </tr>
                                                        <tr>
                                                            <td>time</td>
                                                            <td>integer</td>
                                                            <td>时间戳</td>
                                                        </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div><!-- #sandbox -->

                                <div class="tab-pane" id="sample83">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <pre id="sample_response83">无</pre>
                                        </div>
                                    </div>
                                </div><!-- #sample -->

                            </div><!-- .tab-content -->
                        </div>
                    </div>
                </div>
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h4 class="panel-title">
                            <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion84" href="#collapseOne84"> /api/outer/getWeek</a>
                        </h4>
                    </div>
                    <div id="collapseOne84" class="panel-collapse collapse">
                        <div class="panel-body">

                            <!-- Nav tabs -->
                            <ul class="nav nav-tabs" id="doctab84">
                                <li class="active"><a href="#info84" data-toggle="tab">基础信息</a></li>
                                <li><a href="#sandbox84" data-toggle="tab">在线测试</a></li>
                                <li><a href="#sample84" data-toggle="tab">返回示例</a></li>
                            </ul>

                            <!-- Tab panes -->
                            <div class="tab-content">

                                <div class="tab-pane active" id="info84">
                                    <div class="well">
                                        获取周数据                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>Headers</strong></div>
                                        <div class="panel-body">
                                            无
                                        </div>
                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>参数</strong></div>
                                        <div class="panel-body">
                                            <table class="table table-hover">
                                                <thead>
                                                <tr>
                                                    <th>名称</th>
                                                    <th>类型</th>
                                                    <th>必选</th>
                                                    <th>描述</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <tr>
                                                    <td>token</td>
                                                    <td>string</td>
                                                    <td>是</td>
                                                    <td>用户token</td>
                                                </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>正文</strong></div>
                                        <div class="panel-body">
                                            无                                        </div>
                                    </div>
                                </div><!-- #info -->

                                <div class="tab-pane" id="sandbox84">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>参数</strong></div>
                                                <div class="panel-body">
                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/outer/getWeek" method="POSt" name="form84" id="form84">
                                                        <div class="form-group">
                                                            <label class="control-label" for="token">token</label>
                                                            <input type="string" class="form-control input-sm" id="token" required placeholder="用户token" name="token">
                                                        </div>
                                                        <div class="form-group">
                                                            <button type="submit" class="btn btn-success send" rel="84">提交</button>
                                                        </div>
                                                    </form>
                                                </div>
                                            </div>
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>响应输出</strong></div>
                                                <div class="panel-body">
                                                    <div class="row">
                                                        <div class="col-md-12" style="overflow-x:auto">
                                                            <pre id="response_headers84"></pre>
                                                            <pre id="response84"></pre>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>返回参数</strong></div>
                                                <div class="panel-body">
                                                    <table class="table table-hover">
                                                        <thead>
                                                        <tr>
                                                            <th>名称</th>
                                                            <th>类型</th>
                                                            <th>描述</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        <tr>
                                                            <td>code</td>
                                                            <td>integer</td>
                                                            <td>0成功。其他都失败</td>
                                                        </tr>
                                                        <tr>
                                                            <td>msg</td>
                                                            <td>string</td>
                                                            <td>返回成功</td>
                                                        </tr>
                                                        <tr>
                                                            <td>time</td>
                                                            <td>integer</td>
                                                            <td>时间戳</td>
                                                        </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div><!-- #sandbox -->

                                <div class="tab-pane" id="sample84">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <pre id="sample_response84">{
    "code": 1,
    "msg": "",
    "time": "1574999118",
    "data": [
    {
    "id": 2,
    "value": 2018,
    "childs": [
    {
    "id": 2,
    "value": "第33周,08.20-08.26周数据"
    }
    ]
    }
    ]
    }</pre>
                                        </div>
                                    </div>
                                </div><!-- #sample -->

                            </div><!-- .tab-content -->
                        </div>
                    </div>
                </div>
                <h2>企业微信登录</h2>
                <hr>
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h4 class="panel-title">
                            <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion88" href="#collapseOne88"> /api/work_login/getWorkInfo/</a>
                        </h4>
                    </div>
                    <div id="collapseOne88" class="panel-collapse collapse">
                        <div class="panel-body">

                            <!-- Nav tabs -->
                            <ul class="nav nav-tabs" id="doctab88">
                                <li class="active"><a href="#info88" data-toggle="tab">基础信息</a></li>
                                <li><a href="#sandbox88" data-toggle="tab">在线测试</a></li>
                                <li><a href="#sample88" data-toggle="tab">返回示例</a></li>
                            </ul>

                            <!-- Tab panes -->
                            <div class="tab-content">

                                <div class="tab-pane active" id="info88">
                                    <div class="well">
                                        getWorkInfo                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>Headers</strong></div>
                                        <div class="panel-body">
                                            无
                                        </div>
                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>参数</strong></div>
                                        <div class="panel-body">
                                            <table class="table table-hover">
                                                <thead>
                                                <tr>
                                                    <th>名称</th>
                                                    <th>类型</th>
                                                    <th>必选</th>
                                                    <th>描述</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <tr>
                                                    <td>token</td>
                                                    <td>string</td>
                                                    <td>是</td>
                                                    <td>token</td>
                                                </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>正文</strong></div>
                                        <div class="panel-body">
                                            无                                        </div>
                                    </div>
                                </div><!-- #info -->

                                <div class="tab-pane" id="sandbox88">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>参数</strong></div>
                                                <div class="panel-body">
                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/work_login/getWorkInfo/" method="GET" name="form88" id="form88">
                                                        <div class="form-group">
                                                            <label class="control-label" for="token">token</label>
                                                            <input type="string" class="form-control input-sm" id="token" required placeholder="token" name="token">
                                                        </div>
                                                        <div class="form-group">
                                                            <button type="submit" class="btn btn-success send" rel="88">提交</button>
                                                        </div>
                                                    </form>
                                                </div>
                                            </div>
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>响应输出</strong></div>
                                                <div class="panel-body">
                                                    <div class="row">
                                                        <div class="col-md-12" style="overflow-x:auto">
                                                            <pre id="response_headers88"></pre>
                                                            <pre id="response88"></pre>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>返回参数</strong></div>
                                                <div class="panel-body">
                                                    <table class="table table-hover">
                                                        <thead>
                                                        <tr>
                                                            <th>名称</th>
                                                            <th>类型</th>
                                                            <th>描述</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        <tr>
                                                            <td>code</td>
                                                            <td>integer</td>
                                                            <td></td>
                                                        </tr>
                                                        <tr>
                                                            <td>msg</td>
                                                            <td>string</td>
                                                            <td></td>
                                                        </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div><!-- #sandbox -->

                                <div class="tab-pane" id="sample88">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <pre id="sample_response88">{
    "code": 1,
    "msg": "Logged in successful",
    "time": "1574765625",
    "data": {
    "userinfo": {
    "id": 491,
    "username": "杨柳",
    "nickname": "0630349",
    "avatar": "http://wework.qpic.cn/wwhead/duc2TvpEgST9hicuyypLEKC2JppppE5DugzahDO8Tlmiav2anFMR5Xmk7ruooj9vvSwFe5bHpYEGU/0",
    "mobile": "17607118143",
    "token": "3675d389-44ba-4c29-866a-e856a65e956e",
    "user_id": 491,
    "createtime": 1574765625,
    "expiretime": 1577357625,
    "expires_in": 2592000
    }
    }
    }</pre>
                                        </div>
                                    </div>
                                </div><!-- #sample -->

                            </div><!-- .tab-content -->
                        </div>
                    </div>
                </div>
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h4 class="panel-title">
                            <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion85" href="#collapseOne85"> /api/work_login/test/</a>
                        </h4>
                    </div>
                    <div id="collapseOne85" class="panel-collapse collapse">
                        <div class="panel-body">

                            <!-- Nav tabs -->
                            <ul class="nav nav-tabs" id="doctab85">
                                <li class="active"><a href="#info85" data-toggle="tab">基础信息</a></li>
                                <li><a href="#sandbox85" data-toggle="tab">在线测试</a></li>
                                <li><a href="#sample85" data-toggle="tab">返回示例</a></li>
                            </ul>

                            <!-- Tab panes -->
                            <div class="tab-content">

                                <div class="tab-pane active" id="info85">
                                    <div class="well">
                                        传userid 返回json 不传值用来开发测试                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>Headers</strong></div>
                                        <div class="panel-body">
                                            无
                                        </div>
                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>参数</strong></div>
                                        <div class="panel-body">
                                            <table class="table table-hover">
                                                <thead>
                                                <tr>
                                                    <th>名称</th>
                                                    <th>类型</th>
                                                    <th>必选</th>
                                                    <th>描述</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <tr>
                                                    <td>userid</td>
                                                    <td>string</td>
                                                    <td>是</td>
                                                    <td>用户的userid</td>
                                                </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>正文</strong></div>
                                        <div class="panel-body">
                                            无                                        </div>
                                    </div>
                                </div><!-- #info -->

                                <div class="tab-pane" id="sandbox85">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>参数</strong></div>
                                                <div class="panel-body">
                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/work_login/test/" method="GET" name="form85" id="form85">
                                                        <div class="form-group">
                                                            <label class="control-label" for="userid">userid</label>
                                                            <input type="string" class="form-control input-sm" id="userid" required placeholder="用户的userid" name="userid">
                                                        </div>
                                                        <div class="form-group">
                                                            <button type="submit" class="btn btn-success send" rel="85">提交</button>
                                                        </div>
                                                    </form>
                                                </div>
                                            </div>
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>响应输出</strong></div>
                                                <div class="panel-body">
                                                    <div class="row">
                                                        <div class="col-md-12" style="overflow-x:auto">
                                                            <pre id="response_headers85"></pre>
                                                            <pre id="response85"></pre>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>返回参数</strong></div>
                                                <div class="panel-body">
                                                    <table class="table table-hover">
                                                        <thead>
                                                        <tr>
                                                            <th>名称</th>
                                                            <th>类型</th>
                                                            <th>描述</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        <tr>
                                                            <td>code</td>
                                                            <td>integer</td>
                                                            <td></td>
                                                        </tr>
                                                        <tr>
                                                            <td>msg</td>
                                                            <td>string</td>
                                                            <td></td>
                                                        </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div><!-- #sandbox -->

                                <div class="tab-pane" id="sample85">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <pre id="sample_response85">{
    "code": 1,
    "msg": "Logged in successful",
    "time": "1574765625",
    "data": {
    "userinfo": {
    "id": 491,
    "username": "杨柳",
    "nickname": "0630349",
    "avatar": "http://wework.qpic.cn/wwhead/duc2TvpEgST9hicuyypLEKC2JppppE5DugzahDO8Tlmiav2anFMR5Xmk7ruooj9vvSwFe5bHpYEGU/0",
    "mobile": "17607118143",
    "token": "3675d389-44ba-4c29-866a-e856a65e956e",
    "user_id": 491,
    "createtime": 1574765625,
    "expiretime": 1577357625,
    "expires_in": 2592000
    }
    }
    }</pre>
                                        </div>
                                    </div>
                                </div><!-- #sample -->

                            </div><!-- .tab-content -->
                        </div>
                    </div>
                </div>
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h4 class="panel-title">
                            <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion86" href="#collapseOne86"> /api/work_login/index/</a>
                        </h4>
                    </div>
                    <div id="collapseOne86" class="panel-collapse collapse">
                        <div class="panel-body">

                            <!-- Nav tabs -->
                            <ul class="nav nav-tabs" id="doctab86">
                                <li class="active"><a href="#info86" data-toggle="tab">基础信息</a></li>
                                <li><a href="#sandbox86" data-toggle="tab">在线测试</a></li>
                                <li><a href="#sample86" data-toggle="tab">返回示例</a></li>
                            </ul>

                            <!-- Tab panes -->
                            <div class="tab-content">

                                <div class="tab-pane active" id="info86">
                                    <div class="well">
                                        测试描述信息                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>Headers</strong></div>
                                        <div class="panel-body">
                                            无
                                        </div>
                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>参数</strong></div>
                                        <div class="panel-body">
                                            <table class="table table-hover">
                                                <thead>
                                                <tr>
                                                    <th>名称</th>
                                                    <th>类型</th>
                                                    <th>必选</th>
                                                    <th>描述</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <tr>
                                                    <td>code</td>
                                                    <td>string</td>
                                                    <td>是</td>
                                                    <td>企业微信回调的参数</td>
                                                </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>正文</strong></div>
                                        <div class="panel-body">
                                            无                                        </div>
                                    </div>
                                </div><!-- #info -->

                                <div class="tab-pane" id="sandbox86">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>参数</strong></div>
                                                <div class="panel-body">
                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/work_login/index/" method="GET" name="form86" id="form86">
                                                        <div class="form-group">
                                                            <label class="control-label" for="code">code</label>
                                                            <input type="string" class="form-control input-sm" id="code" required placeholder="企业微信回调的参数" name="code">
                                                        </div>
                                                        <div class="form-group">
                                                            <button type="submit" class="btn btn-success send" rel="86">提交</button>
                                                        </div>
                                                    </form>
                                                </div>
                                            </div>
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>响应输出</strong></div>
                                                <div class="panel-body">
                                                    <div class="row">
                                                        <div class="col-md-12" style="overflow-x:auto">
                                                            <pre id="response_headers86"></pre>
                                                            <pre id="response86"></pre>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>返回参数</strong></div>
                                                <div class="panel-body">
                                                    无
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div><!-- #sandbox -->

                                <div class="tab-pane" id="sample86">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <pre id="sample_response86">无</pre>
                                        </div>
                                    </div>
                                </div><!-- #sample -->

                            </div><!-- .tab-content -->
                        </div>
                    </div>
                </div>
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h4 class="panel-title">
                            <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion87" href="#collapseOne87"> /api/work_login/login/</a>
                        </h4>
                    </div>
                    <div id="collapseOne87" class="panel-collapse collapse">
                        <div class="panel-body">

                            <!-- Nav tabs -->
                            <ul class="nav nav-tabs" id="doctab87">
                                <li class="active"><a href="#info87" data-toggle="tab">基础信息</a></li>
                                <li><a href="#sandbox87" data-toggle="tab">在线测试</a></li>
                                <li><a href="#sample87" data-toggle="tab">返回示例</a></li>
                            </ul>

                            <!-- Tab panes -->
                            <div class="tab-content">

                                <div class="tab-pane active" id="info87">
                                    <div class="well">
                                        无法测试，用企业微信访问即可                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>Headers</strong></div>
                                        <div class="panel-body">
                                            无
                                        </div>
                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>参数</strong></div>
                                        <div class="panel-body">
                                            无
                                        </div>
                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>正文</strong></div>
                                        <div class="panel-body">
                                            无                                        </div>
                                    </div>
                                </div><!-- #info -->

                                <div class="tab-pane" id="sandbox87">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>参数</strong></div>
                                                <div class="panel-body">
                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/work_login/login/" method="GET" name="form87" id="form87">
                                                        <div class="form-group">
                                                            无
                                                        </div>
                                                        <div class="form-group">
                                                            <button type="submit" class="btn btn-success send" rel="87">提交</button>
                                                        </div>
                                                    </form>
                                                </div>
                                            </div>
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>响应输出</strong></div>
                                                <div class="panel-body">
                                                    <div class="row">
                                                        <div class="col-md-12" style="overflow-x:auto">
                                                            <pre id="response_headers87"></pre>
                                                            <pre id="response87"></pre>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>返回参数</strong></div>
                                                <div class="panel-body">
                                                    无
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div><!-- #sandbox -->

                                <div class="tab-pane" id="sample87">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <pre id="sample_response87">无</pre>
                                        </div>
                                    </div>
                                </div><!-- #sample -->

                            </div><!-- .tab-content -->
                        </div>
                    </div>
                </div>
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h4 class="panel-title">
                            <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion88" href="#collapseOne88"> /api/work_login/logout/</a>
                        </h4>
                    </div>
                    <div id="collapseOne88" class="panel-collapse collapse">
                        <div class="panel-body">

                            <!-- Nav tabs -->
                            <ul class="nav nav-tabs" id="doctab88">
                                <li class="active"><a href="#info88" data-toggle="tab">基础信息</a></li>
                                <li><a href="#sandbox88" data-toggle="tab">在线测试</a></li>
                                <li><a href="#sample88" data-toggle="tab">返回示例</a></li>
                            </ul>

                            <!-- Tab panes -->
                            <div class="tab-content">

                                <div class="tab-pane active" id="info88">
                                    <div class="well">
                                        退出登录                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>Headers</strong></div>
                                        <div class="panel-body">
                                            无
                                        </div>
                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>参数</strong></div>
                                        <div class="panel-body">
                                            <table class="table table-hover">
                                                <thead>
                                                <tr>
                                                    <th>名称</th>
                                                    <th>类型</th>
                                                    <th>必选</th>
                                                    <th>描述</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <tr>
                                                    <td>token</td>
                                                    <td>string</td>
                                                    <td>是</td>
                                                    <td>token</td>
                                                </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><strong>正文</strong></div>
                                        <div class="panel-body">
                                            无                                        </div>
                                    </div>
                                </div><!-- #info -->

                                <div class="tab-pane" id="sandbox88">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>参数</strong></div>
                                                <div class="panel-body">
                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/work_login/logout/" method="GET" name="form88" id="form88">
                                                        <div class="form-group">
                                                            <label class="control-label" for="token">token</label>
                                                            <input type="string" class="form-control input-sm" id="token" required placeholder="token" name="token">
                                                        </div>
                                                        <div class="form-group">
                                                            <button type="submit" class="btn btn-success send" rel="88">提交</button>
                                                        </div>
                                                    </form>
                                                </div>
                                            </div>
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>响应输出</strong></div>
                                                <div class="panel-body">
                                                    <div class="row">
                                                        <div class="col-md-12" style="overflow-x:auto">
                                                            <pre id="response_headers88"></pre>
                                                            <pre id="response88"></pre>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="panel panel-default">
                                                <div class="panel-heading"><strong>返回参数</strong></div>
                                                <div class="panel-body">
                                                    <table class="table table-hover">
                                                        <thead>
                                                        <tr>
                                                            <th>名称</th>
                                                            <th>类型</th>
                                                            <th>描述</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        <tr>
                                                            <td>code</td>
                                                            <td>integer</td>
                                                            <td></td>
                                                        </tr>
                                                        <tr>
                                                            <td>msg</td>
                                                            <td>string</td>
                                                            <td></td>
                                                        </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div><!-- #sandbox -->

                                <div class="tab-pane" id="sample88">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <pre id="sample_response88">无</pre>
                                        </div>
                                    </div>
                                </div><!-- #sample -->

                            </div><!-- .tab-content -->
                        </div>
                    </div>
                </div>
            </div>
            <hr>
            <div class="row mt0 footer">
                <div class="col-md-6" align="left">
                    Generated on 2019-11-28 15:08:55                </div>
                <div class="col-md-6" align="right">
                    <a href="https://www.syydnr.cn" target="_blank">syydnr.cn</a>
                </div>
            </div>

        </div> <!-- /container -->

        <script src="https://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
        <script src="https://cdn.bootcss.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
        <script type="text/javascript">
            function syntaxHighlight(json) {
                if (typeof json != 'string') {
                    json = JSON.stringify(json, undefined, 2);
                }
                json = json.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
                return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) {
                    var cls = 'number';
                    if (/^"/.test(match)) {
                        if (/:$/.test(match)) {
                            cls = 'key';
                        } else {
                            cls = 'string';
                        }
                    } else if (/true|false/.test(match)) {
                        cls = 'boolean';
                    } else if (/null/.test(match)) {
                        cls = 'null';
                    }
                    return '<span class="' + cls + '">' + match + '</span>';
                });
            }

            function prepareStr(str) {
                try {
                    return syntaxHighlight(JSON.stringify(JSON.parse(str.replace(/'/g, '"')), null, 2));
                } catch (e) {
                    return str;
                }
            }
            var storage = (function () {
                var uid = new Date;
                var storage;
                var result;
                try {
                    (storage = window.localStorage).setItem(uid, uid);
                    result = storage.getItem(uid) == uid;
                    storage.removeItem(uid);
                    return result && storage;
                } catch (exception) {
                }
            }());

            $.fn.serializeObject = function ()
            {
                var o = {};
                var a = this.serializeArray();
                $.each(a, function () {
                    if (!this.value) {
                        return;
                    }
                    if (o[this.name] !== undefined) {
                        if (!o[this.name].push) {
                            o[this.name] = [o[this.name]];
                        }
                        o[this.name].push(this.value || '');
                    } else {
                        o[this.name] = this.value || '';
                    }
                });
                return o;
            };

            $(document).ready(function () {

                if (storage) {
                    $('#token').val(storage.getItem('token'));
                    $('#apiUrl').val(storage.getItem('apiUrl'));
                }

                $('[data-toggle="tooltip"]').tooltip({
                    placement: 'bottom'
                });

                $('code[id^=response]').hide();

                $.each($('pre[id^=sample_response],pre[id^=sample_post_body]'), function () {
                    if ($(this).html() == 'NA') {
                        return;
                    }
                    var str = prepareStr($(this).html());
                    $(this).html(str);
                });

                $("[data-toggle=popover]").popover({placement: 'right'});

                $('[data-toggle=popover]').on('shown.bs.popover', function () {
                    var $sample = $(this).parent().find(".popover-content"),
                            str = $(this).data('content');
                    if (typeof str == "undefined" || str === "") {
                        return;
                    }
                    var str = prepareStr(str);
                    $sample.html('<pre>' + str + '</pre>');
                });

                $('body').on('click', '#save_data', function (e) {
                    if (storage) {
                        storage.setItem('token', $('#token').val());
                        storage.setItem('apiUrl', $('#apiUrl').val());
                    } else {
                        alert('Your browser does not support local storage');
                    }
                });

                $('body').on('click', '.send', function (e) {
                    e.preventDefault();
                    var form = $(this).closest('form');
                    //added /g to get all the matched params instead of only first
                    var matchedParamsInRoute = $(form).attr('action').match(/[^{]+(?=\})/g);
                    var theId = $(this).attr('rel');
                    //keep a copy of action attribute in order to modify the copy
                    //instead of the initial attribute
                    var url = $(form).attr('action');

                    var formData = new FormData();

                    $(form).find('input').each(function (i, input) {
                        if ($(input).attr('type') == 'file') {
                            formData.append($(input).attr('name'), $(input)[0].files[0]);
                        } else {
                            formData.append($(input).attr('name'), $(input).val())
                        }
                    });

                    var index, key, value;

                    if (matchedParamsInRoute) {
                        var params = {};
                        formData.forEach(function(value, key){
                            params[key] = value;
                        });
                        for (index = 0; index < matchedParamsInRoute.length; ++index) {
                            try {
                                key = matchedParamsInRoute[index];
                                value = params[key];
                                if (typeof value == "undefined")
                                    value = "";
                                url = url.replace("\{" + key + "\}", value);
                                formData.delete(key);
                            } catch (err) {
                                console.log(err);
                            }
                        }
                    }

                    var headers = {};

                    var token = $('#token').val();
                    if (token.length > 0) {
                        headers['token'] = token;
                    }

                    $("#sandbox" + theId + " .headers input[type=text]").each(function () {
                        val = $(this).val();
                        if (val.length > 0) {
                            headers[$(this).prop('name')] = val;
                        }
                    });

                    $.ajax({
                        url: $('#apiUrl').val() + url,
                        data: $(form).prop('method').toLowerCase() == 'get' ? $(form).serialize() : formData,
                        type: $(form).prop('method') + '',
                        dataType: 'json',
                        contentType: false,
                        processData: false,
                        headers: headers,
                        success: function (data, textStatus, xhr) {
                            if (typeof data === 'object') {
                                var str = JSON.stringify(data, null, 2);
                                $('#response' + theId).html(syntaxHighlight(str));
                            } else {
                                $('#response' + theId).html(data || '');
                            }
                            $('#response_headers' + theId).html('HTTP ' + xhr.status + ' ' + xhr.statusText + '<br/><br/>' + xhr.getAllResponseHeaders());
                            $('#response' + theId).show();
                        },
                        error: function (xhr, textStatus, error) {
                            try {
                                var str = JSON.stringify($.parseJSON(xhr.responseText), null, 2);
                            } catch (e) {
                                var str = xhr.responseText;
                            }
                            $('#response_headers' + theId).html('HTTP ' + xhr.status + ' ' + xhr.statusText + '<br/><br/>' + xhr.getAllResponseHeaders());
                            $('#response' + theId).html(syntaxHighlight(str));
                            $('#response' + theId).show();
                        }
                    });
                    return false;
                });
            });
        </script>
    </body>
</html>
